package hibernate.method.interfaces;

import java.util.List;

import hibernate.model.EventFeedback;
import hibernate.model.GameFeedback;
import hibernate.model.LocalFeedback;

import org.hibernate.Session;
import org.hibernate.SessionFactory;

public interface FeedbackMethodsInterface {
	
	public void addLocalFeedback (SessionFactory sessionFactory, Session session, String user_id, int local_id, String comment);
	
	public void addGameFeedback(SessionFactory sessionFactory, Session session, String user_id, int game_id, String comment);
	
	public void addEventFeedback(SessionFactory sessionFactory, Session session, String user_id, int event_id, String comment);
	
	public void deleteLocalFeedback(SessionFactory sessionFactory, Session session, LocalFeedback fb);
	
	public void deleteGameFeedback(SessionFactory sessionFactory, Session session, GameFeedback gb);
	
	public void deleteEventFeedback(SessionFactory sessionFactory, Session session, EventFeedback efb);
	
	public GameFeedback idtoGameFeedback (SessionFactory sessionFactory, Session session, int gameFeedback);
	
	public LocalFeedback idToLocalFeedback (SessionFactory sessionFactory, Session session, int localFeedback);
	
	public EventFeedback idToEventFeedback (SessionFactory sessionFactory, Session session, int eventFeedback);
	
	public GameFeedback findGameFeebackById(SessionFactory sessionFactory, Session session, int feedback_id);
	
	public LocalFeedback findLocalFeebackById(SessionFactory sessionFactory, Session session, int feedback_id);
	
	public EventFeedback findEventFeebackById(SessionFactory sessionFactory, Session session, int eventfb_id);
	
	public List<GameFeedback> listGameFeedbacks (SessionFactory sessionFactory, Session session, int game_id);
	
	public List<LocalFeedback> listLocalFeedbacks (SessionFactory sessionFactory, Session session, int local_id);
	
	public List<EventFeedback> listEventFeedbacks (SessionFactory sessionFactory, Session session, int event_id);

	public int countFbByLocalId(SessionFactory sessionFactory, Session session, int local_id);
	
	public int countFbByGameId(SessionFactory sessionFactory, Session session, int game_id);
	
	
	
}
